package com.market.plus.core.service;

import java.util.List;

import com.market.plus.core.domain.NewsSecurityType;
import com.market.plus.core.dto.CommentDto;
import com.market.plus.core.dto.NewsDto;
import com.market.plus.core.dto.ParticipantDto;

public interface NewsService{

   String saveNews(NewsDto newsDto, Long particicipantId, NewsSecurityType newsSecurityType, long[] friendIds) throws Exception;

   void addComment(Long participantId, Long newsId, CommentDto comment) throws Exception;

   NewsDto getPersonalIntroduction(Long particicipantId);

   List<CommentDto> getComments(String newsGUID);

   List<NewsDto> getCommonNews(Long participantId);

   List<NewsDto> getPrivateNews(Long participantId);

   List<NewsDto> filterByFriends(ParticipantDto participantDto, ParticipantDto[] friends);
}
